import * as types from './pages.mutaionsType'
const pages = {
  state: {
    detailsId: -1
  },
  mutations: {
    [types.SET_DETAILSID] (state, detailsId) {
      state.detailsId = detailsId
    }
  },
  actions: {
    _setDetailsId ({commit}, params) {
      return new Promise((resolve) => {
        let id = params.id
        commit('SET_DETAILSID', id)
        resolve()
      })
    }
  }
}
export default pages
